/*
 * worker.h
 *
 *  Created on: Jan 12, 2010
 *      Author: Marco Luisi
 */

#ifndef WORKER_H_
#define WORKER_H_

#include "nmat.h"
#include "util.h"
#include "fileio.h"
#include "nmcom.h"
#include "mathlib.h"
#include <dirent.h>


void init();
int serve();
int new(); // tutti sti int?
int print();
void list();
int save(char*);
int load(char*);
int clientexit();
int TRASP();
void msgprint(message_t *);


int matToFile(matrix_t m);

void term_handler(int);


#endif /* WORKER_H_ */
